<%@ page language="java" contentType="application/json; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="com.jija.blls.Address" %>
 <%@ page import="com.jija.blls.Member" %>
 <%@ page import="com.jija.models.MemberInfo" %>
<%
   String openid=request.getParameter("openid");
   //openid="oGYKzjrFZt6UUd1pNqpAFdfgWA-Y";
   
   if(openid==null) {
	  
	   out.println("{\"err\":\"无法正常获取用户信息，网页加载失败\"}");
	   return;
   }
   
   MemberInfo m=new Member().hasMember(openid);
   if(m==null) {
	   out.println("{\"err\":\"无法正常获取用户信息，网页加载失败\"}");
	   return;	   
   }
   String msg=new Address().getJason(openid);
   String x=m.getMlongitude();
   String y=m.getMlatitude();
   String xy=y+","+x;
   msg=msg+",\"x\":\""+x+"\","+"\"y\":\""+y+"\","+"\"xy\":\""+xy+"\"";
   out.println("{"+msg+"}");
%>
